need to implement support for /autoclose and /silent